package dongshi.daddy.command.v2.command;

import dongshi.daddy.command.v2.receiver.AirConditionerReceiver;

// 制冷命令，内部调用空调的制冷操作
public class ColdCommand implements Command {
    private AirConditionerReceiver receiver;

    public ColdCommand(AirConditionerReceiver receiver) {
        this.receiver = receiver;
    }
    @Override
    public void exec() {
        this.receiver.cold();
    }
}
